package pers.bbw.crr.dao;

import pers.bbw.crr.entity.Equipment;

import java.util.List;

/**
 * equipmentMapper接口
 *
 * @author bbw
 * @date 2024-12-13
 */
public interface EquipmentMapper {
    /**
     * 查询equipment
     *
     * @param id equipment主键
     * @return equipment
     */
    Equipment selectEquipmentById(int id);

    /**
     * 查询equipment列表
     *
     * @param equipment equipment
     * @return equipment集合
     */
    List<Equipment> selectEquipmentList(Equipment equipment);

    /**
     * 新增equipment
     *
     * @param equipment equipment
     * @return 结果
     */
    int insertEquipment(Equipment equipment);

    /**
     * 修改equipment
     *
     * @param equipment equipment
     * @return 结果
     */
    int updateEquipment(Equipment equipment);

    /**
     * 删除equipment
     *
     * @param id equipment主键
     * @return 结果
     */
    int deleteEquipmentById(int id);

    /**
     * 批量删除equipment
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    int deleteEquipmentByIds(int[] ids);

    String selectFileUrlById(int id);
}
